const menuData = {
  msg: "操作成功",
  code: 200,
  data: [
    {
      name: "System",
      path: "/system",
      hidden: false,
      redirect: "noRedirect",
      component: "Layout",
      alwaysShow: true,
      meta: {
        title: "系统管理",
        icon: "system",
        noCache: false,
        link: null,
      },
      children: [
        {
          name: "User",
          path: "user",
          hidden: false,
          component: "system/user/index",
          meta: {
            title: "用户管理",
            icon: "user",
            noCache: false,
            link: null,
          },
        },
        {
          name: "Menu",
          path: "menu",
          hidden: false,
          component: "system/menu/index",
          meta: {
            title: "菜单管理",
            icon: "tree-table",
            noCache: false,
            link: null,
          },
        },
      ],
    },
  ],
};

module.exports = [
  // get user info
  {
    url: "/getRouters",
    type: "get",
    response: () => {
      return menuData;
    },
  },
];
